<div class="content-titulo">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <div class="content-btn">
        <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit')); ?>">+</a>
    </div>
    
    
</div>
    
<div class="content-table">
    <table id="tlist">
        <thead>
            <tr>
                <th>Código</th>
                <th>Nome</th>
                <th>Ordem</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>  
                    <td align="center"><?php echo $row->MEN_ID; ?></td>
                    <td><?php echo $row->MEN_NOME; ?></td>
                    <td><?php echo $row->MEN_ORD; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row->MEN_ID)); ?>">Editar</a><?php }?>
                        <?php if($this->per_del){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'delete', 'id' => $row->MEN_ID)); ?>">Deletar</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
